package CodeOne;

import org.jetbrains.annotations.NotNull;

import java.util.Scanner;

/** @author ASUS */
public class Encryption {
  public static void main(String[] args) {
    Scanner inputScan = new Scanner(System.in);
     int counter = inputScan.nextInt();
     String[] input = new String[counter+1];
     input[0] = inputScan.nextLine();
     for (int i = 1; i < counter+1; i++) {
       input[i] = inputScan.nextLine();
     }
     for (int i = 1; i < counter+1; i++) {
       encryption(input[i]);
     }
  }

  public static void encryption(@NotNull String string) {
    char[] c = string.toCharArray();
    StringBuilder buf = new StringBuilder();
    for (char value : c) {
      if (value == 'Z') {
        buf.append("A");
      } else if (value == 'z') {
        buf.append("a");
      } else if (value >= 'a' && value <= 'y') {
        buf.append((char) (value + 1));
      } else if (value >= 'A' && value <= 'Y') {
        buf.append((char) (value + 1));
      } else {
        buf.append(value);
      }
    }
    System.out.println(buf);
  }
}
